#!/usr/bin/env groovy
def ant = new AntBuilder().sequential {
	mkdir(dir:"build/classes")
	taskdef name: "groovyc", classname: "org.codehaus.groovy.ant.Groovyc"
	groovyc srcdir: "src", destdir: "build/classes", {
		classpath {
			fileset dir: "lib", {
		    	include name: "*.jar"
			}
			pathelement path: "build/classes"
		}
		javac source: "1.6", target: "1.6", debug: "on"
	}
}
